package com.ruoyi.erp.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 流水号对象 sys_biz_serial
 *
 * @author chenyun
 * @date 2022-03-13
 */
@Data
@Accessors(chain = true)
@TableName("sys_biz_serial")
public class SysBizSerial extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 机构编号
     */
    private Long orgId;
    /**
     * 业务编号
     */
    private String bizId;
    /**
     * 年
     */
    private Integer year;
    /**
     * 期间
     */
    private Integer period;
    /**
     * 当前流水
     */
    private Long baseNum;

    @Version
    private Long version;
}
